package cn.rulian.base.curd.bo;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.rulian.base.common.bo.BaseBo;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 一个增删改查，是一个bo生成代码的相关配置 
 */
@Entity
@Table(name = "base_curd_curd")
public class Curd extends BaseBo {

	@Column(length = 20)
	private String code; //编号
	
	@Column(length = 50)
	private String name; //名称

	@Column(length = 200)
	private String boPath; //bo类全路径
	
	@Column(length = 200)
	private String remark; //备注
	
	@Column(length = 20)
	private String windowSize_add; //增加窗口大小
	
	@Column(length = 20)
	private String windowSize_update; //编辑 窗口大小
	
	@Column(length = 20)
	private String windowSize_detail; //详情窗口大小
	
	@Column(length = 50)
	private String defaultOrderFieldName; //默认排序字段ID
	
	@Column(length = 20)
	private String defaultOrderType; //默认排序类型：desc、asc
	
	private Integer tdNum; //增加(修改、详情)页面列数
	
	private Boolean validated; //是否经过验证
	
	private Boolean buildConfig; //是否生成默认配置
	
	private Boolean config; //是否完成curd配置
	
	private Boolean configField; //是否完成属性配置

	@Column(length = 200)
	private String urlTest; //测试URL

	@Column(length = 200)
	private String urlFinal; //正式URL

	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") //json格式化输出，列表显示时用
	private Date addTime; //增加时间

	public String getCode()
	{
		return code;
	}

	public void setCode(String code)
	{
		this.code = code;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getBoPath()
	{
		return boPath;
	}

	public void setBoPath(String boPath)
	{
		this.boPath = boPath;
	}

	public String getRemark()
	{
		return remark;
	}

	public void setRemark(String remark)
	{
		this.remark = remark;
	}

	public String getWindowSize_add()
	{
		return windowSize_add;
	}

	public void setWindowSize_add(String windowSize_add)
	{
		this.windowSize_add = windowSize_add;
	}

	public String getWindowSize_update()
	{
		return windowSize_update;
	}

	public void setWindowSize_update(String windowSize_update)
	{
		this.windowSize_update = windowSize_update;
	}

	public String getWindowSize_detail()
	{
		return windowSize_detail;
	}

	public void setWindowSize_detail(String windowSize_detail)
	{
		this.windowSize_detail = windowSize_detail;
	}

	public String getDefaultOrderType()
	{
		return defaultOrderType;
	}

	public void setDefaultOrderType(String defaultOrderType)
	{
		this.defaultOrderType = defaultOrderType;
	}

	public Integer getTdNum()
	{
		return tdNum;
	}

	public void setTdNum(Integer tdNum)
	{
		this.tdNum = tdNum;
	}

	public Date getAddTime()
	{
		return addTime;
	}

	public void setAddTime(Date addTime)
	{
		this.addTime = addTime;
	}

	public Boolean getValidated()
	{
		return validated;
	}

	public void setValidated(Boolean validated)
	{
		this.validated = validated;
	}

	public Boolean getConfig()
	{
		return config;
	}

	public void setConfig(Boolean config)
	{
		this.config = config;
	}

	public Boolean getConfigField()
	{
		return configField;
	}

	public void setConfigField(Boolean configField)
	{
		this.configField = configField;
	}

	public Boolean getBuildConfig()
	{
		return buildConfig;
	}

	public void setBuildConfig(Boolean buildConfig)
	{
		this.buildConfig = buildConfig;
	}

	public String getDefaultOrderFieldName()
	{
		return defaultOrderFieldName;
	}

	public void setDefaultOrderFieldName(String defaultOrderFieldName)
	{
		this.defaultOrderFieldName = defaultOrderFieldName;
	}

	public String getUrlTest()
	{
		return urlTest;
	}

	public void setUrlTest(String urlTest)
	{
		this.urlTest = urlTest;
	}

	public String getUrlFinal()
	{
		return urlFinal;
	}

	public void setUrlFinal(String urlFinal)
	{
		this.urlFinal = urlFinal;
	}

	
}
